﻿using Uranus.WeiStationAPI.Models;

namespace Uranus.WeiStationAPI.Common
{
    public class ResPonseDataCommon
    {
        public static ResultResPonse ResPonseDataHandle(ResultResPonse resultResPonse)
        {
            switch (resultResPonse.code)
            {
                case 001:
                    break;
                case 002:
                    resultResPonse.data = "失败";
                    break;
                case 003:
                    resultResPonse.data = "参数非法";
                    break;
                case 004:
                    resultResPonse.data = "验证签名失败";
                    break;
                case 005://自定义返回信息
                    resultResPonse.data = resultResPonse.data;
                    break;
                case 006:
                    resultResPonse.data = "接口内部错误";
                    break;
                case 007:
                    resultResPonse.data = "网络处理繁忙，请您稍后重试";
                    break;
                case 008:
                    resultResPonse.data = "用户未登录";
                    break;
                case 009:
                    resultResPonse.data = "获取短信验证码失败";
                    break;
                case 010:
                    resultResPonse.data = "";
                    break;
                case 011:
                    resultResPonse.data = "操作超时";
                    break;
                case 012:
                    resultResPonse.data = "信息异常，限制登录";
                    break;
                case 013:
                    resultResPonse.data = "信息异常，限制注册";
                    break;
                case 014:
                    resultResPonse.data = "短信验证异常，限制发送";
                    break;
                case 015:
                    resultResPonse.data = "请求非法";
                    break;
                case 016:
                    resultResPonse.data = "当前账户在其他设备登录";
                    break;
                case 017:
                    resultResPonse.data = "非法访问";
                    break;
                case 018:
                    resultResPonse.data = "操作频率过高，请稍后再试";
                    break;
                case 101:
                    resultResPonse.data = "用户名不能为空";
                    break;
                case 102:
                    resultResPonse.data = "密码不能为空";
                    break;
                case 103:
                    resultResPonse.data = "您输入的手机号已被注册，请更换";
                    break;
                case 104:
                    resultResPonse.data = "登录密码和手机号不匹配，请重新输入";
                    break;
                case 105:
                    resultResPonse.data = "手机号格式不正确";
                    break;
                case 106:
                    resultResPonse.data = "请输入手机号";
                    break;
                case 107:
                    resultResPonse.data = "您输入的手机号已被注册，请更换";
                    break;
                case 108:
                    resultResPonse.data = "请输入验证码";
                    break;
                case 109:
                    resultResPonse.data = "请先获取验证码";
                    break;
                case 110:
                    resultResPonse.data = "订单记录不存在";
                    break;
                case 111:
                    resultResPonse.data = "请输入正确的短信验证码";
                    break;
                case 112:
                    resultResPonse.data = "获取验证码的手机号与注册手机号不一致";
                    break;
                case 113:
                    resultResPonse.data = "手机号不存在";
                    break;
                case 114:
                    resultResPonse.data = "身份证格式不正确";
                    break;
                case 115:
                    resultResPonse.data = "银行卡格式不正确";
                    break;
                case 116:
                    resultResPonse.data = "请正确输入金额";
                    break;
                case 117:
                    resultResPonse.data = "该身份证已经存在";
                    break;
                case 118:
                    resultResPonse.data = "该银行卡号已经存在";
                    break;
                case 119:
                    resultResPonse.data = "未开通汇付";
                    break;
                case 132:
                    resultResPonse.data = "快捷提现需要支付手续费，您的提现金额加手续费超出可提现金额";
                    break;
                case 300:
                    resultResPonse.data = "融宝充值接口异常，请稍后再试";
                    break;
                case 301:
                    resultResPonse.data = "未绑定银行卡";
                    break;
                case 302:
                    resultResPonse.data = "交易数据不存在";
                    break;
                case 303:
                    resultResPonse.data = resultResPonse.data ?? "验证失败";
                    break;
                case 304:
                    resultResPonse.data = "交易失败";
                    break;
                case 305:
                    resultResPonse.data = "账户余额不足";
                    break;
                case 306:
                    resultResPonse.data = "验证银行卡信息失败";
                    break;
                case 307:
                    resultResPonse.data = "汇付接口版本验证不正确";
                    break;
            }

            return resultResPonse;
        }
    }
}